/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const partnerRouter = {
  path: '/partner',
  component: Layout,
  redirect: '/table/complex-table',
  name: '合作中心',
  meta: {
    title: '合作中心',
    icon: 'table'
  },
  children: [{
    path: 'index',
    component: () => import('@/views/partner/index'),
    name: '合作商一览',
    meta: { title: '合作商一览' }
  }, {
    path: 'cooperation/price',
    component: () => import('@/views/partner/cooperation/price'),
    props: (route) => ({ query: route.query.partnerId }),
    name: '售后服务价签',
    meta: { title: '售后服务价签' }
  },
  {
    path: 'cooperation/completion',
    component: () => import('@/views/partner/cooperation/completion'),
    props: (route) => ({ query: route.query.partnerId }),
    name: '售后完工项目',
    meta: { title: '售后完工项目' }
  }]
}
export default partnerRouter
